﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using HAMath;
namespace HA.ModFlow.Controls.Windows.DataOperation
{
    /// <summary>
    /// winSearchEllipsoid.xaml 的交互逻辑
    /// </summary>
    public partial class winSearchEllipsoid : Window
    {
        public winSearchEllipsoid(SearchEllipsoid ellipsoid)
        {
            InitializeComponent();
            this._searchEllipsoid =(SearchEllipsoid) ellipsoid.Clone ();
        }
        SearchEllipsoid _searchEllipsoid = new SearchEllipsoid();

        public SearchEllipsoid SearchEllipsoid
        {
            get { return _searchEllipsoid; }
         
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = this._searchEllipsoid;
        }

        private void btnOk_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void btnCancal_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
